import request from '@/utils/request'

// 查询设备能耗详细列表
export function listEquipmentPowerDetail(query) {
  return request({
    url: '/carbonReport/equipmentPowerReport/list',
    method: 'get',
    params: query
  })
}

// 查询设备能耗详细详细
export function getEquipmentPowerDetail(equipmentId) {
  return request({
    url: '/carbonReport/equipmentPowerReport/' + equipmentId,
    method: 'get'
  })
}

// 新增设备能耗详细
export function addEquipmentPowerDetail(data) {
  return request({
    url: '/carbonReport/equipmentPowerReport',
    method: 'post',
    data: data
  })
}

// 修改设备能耗详细
export function updateEquipmentPowerDetail(data) {
  return request({
    url: '/carbonReport/equipmentPowerReport',
    method: 'put',
    data: data
  })
}

// 删除设备能耗详细
export function delEquipmentPowerDetail(equipmentId) {
  return request({
    url: '/carbonReport/equipmentPowerReport/' + equipmentId,
    method: 'delete'
  })
}

// 导出设备能耗详细
export function exportEquipmentPowerDetail(query) {
  return request({
    url: '/carbonReport/equipmentPowerReport/export',
    method: 'get',
    params: query
  })
}
